﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class TransformExtension
{
    /// <summary>
    /// 清零Transform组件的位置、旋转和缩放
    /// </summary>
    public static void Reset(this Transform tran)
    {
        tran.position = Vector3.zero;
        tran.rotation = Quaternion.identity;
        tran.localScale = Vector3.one;
    }
}
